package day6;

import java.io.FileWriter;
import java.io.IOException;

/**
 * @author oldliu
 * @since 1.0
 */
public class CharTest {
    //字符操作
    public static void main(String[] args) {
        try {
            FileWriter fw=new FileWriter("F:/java82/java82.txt",true);
            fw.write("指导老师:");
            fw.write(21016);
            fw.write(new char[]{'老','师'});
            for(int i=1;i<=10;i++){
                fw.write("好好学习，Day day up!\r\n");
            }
            fw.append("ssss").append("fff").append("tthello");

            fw.close();
            System.out.println("写入成功");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
